package com.qianyu.test.obj;

import java.util.*;

/**
 * @author lijing
 * @e-mail 1413979079@qq.com
 * @date 2020-02-04 13:21
 * @description split方法返回一个数组，如果字符串中没有匹配的字符的话，返回数组长度为1的数组，元素为自身
 */
public class SplitTest {
    public static void main(String[] args) {
        String str = "";
        String[] split = str.split(",");
        System.out.println(Arrays.toString(split));
        System.out.println(split.length);
    }
}
